<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="paging" uri="paging-taglib" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/4
  Time: 9:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>全部退款订单列表</title>
</head>
<body>
<div class="navigation">
    <div class="crumbs ">
        <i class="tm-iconfont icon-info"></i>
        <a href="#">卖家中心</a><span>&gt;</span><a href="#200">交易管理</a><span>&gt;</span>退货订单
    </div>
    <div class="help">
        <a href="#" target="_blank">卖家交易学习专区</a>
    </div>
</div>
<!--商品列表 star-->
<div class="goods_list p-t10">
<form action="${ctx}/order/searchRefundOrderByConditions" method="post">
    <div class="tip_from p-l50">
        <ul class="tar">
            <li class="p-b10"><label>退款订单编号：</label><input type="text" class="text w150" name="orderNum"/></li>
            <li class="p-b10"><label>申请退款时间：</label>
                <input type="text" class="text w150" placeholder="格式：2016/1/1" name="startTime"/>
                <span class="p-lr10 c-999999">-</span>
                <input type="text" class="text w150" placeholder="格式：2016/12/12"  name="endTime"/>
            </li>
            <li class="p-b10"><label>买家：</label><input type="text" class="text w150" name="buyer"/></li>
            <li class="p-b10"><label>订单状态：</label>
                <select class="text w172" name="status">
                    <option value="-2">选择状态</option>
                    <option value="-1">取消的订单</option>
                    <option value="0">等待卖家审核</option>
                    <option value="1">等待买家发货</option>
                    <option value="2">买家已发货</option>
                    <option value="3">卖家已退款</option>
                </select>
            </li>
        </ul>
        <div class="bot p-tb10"><label>&nbsp;</label><button class="i_btn u2 p-lr50">搜索退款</button></div>
    </div>
</form>
    <div class="mtc_tab">
        <!--star mt-->
        <div class="mt">
            <a href="${ctx}/order/getAllRefundOrders" class="curr">全部退款订单</a>
            <a href="${ctx}/order/getAllRefundOrdersByStatus?status=0">等待卖家审核</a>
            <a href="${ctx}/order/getAllRefundOrdersByStatus?status=1">等待买家发货</a>
            <a href="${ctx}/order/getAllRefundOrdersByStatus?status=2">买家已发货</a>
            <a href="${ctx}/order/getAllRefundOrdersByStatus?status=3">成功的退货</a>
            <a href="${ctx}/order/getAllRefundOrdersByStatus?status=-1">关闭的退货</a>
        </div>
        <!--end mt-->
        <!--star mc-->
        <div class="mc">
            <div class="u_table_list m-t20">
                <!--star 名称-->
                <div class="mtt line-left line-right line-top">
                    <table>
                        <colgroup>
                            <col width="35%">
                            <col width="10%">
                            <col width="8%">
                            <col width="13%">
                            <col width="10%">
                            <col width="15%">
                        </colgroup>
                        <tbody>
                        <tr class="fwb">
                            <th>商品</th>
                            <th>单价（元）</th>
                            <th>数量</th>
                            <th>买家</th>
                            <th>退货总金额</th>
                            <th>&nbsp;</th>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!--end 名称-->
                <c:forEach items="${orderRefundModelList}" var="list">
                <!--star 商品-->
                <div class="table002 line-right line-top m-t20">
                    <table>
                        <colgroup>
                            <col width="35%">
                            <col width="10%">
                            <col width="8%">
                            <col width="13%">
                            <col width="10%">
                            <col width="15%">
                        </colgroup>
                        <tbody>
                        <tr>
                            <td class="tb_top" colspan="7"><span>退货单号: ${list.oOrderRefund.orderRefundNum}（订单号：${list.oOrderRefund.orderNum}）</span><span class="r">提交退货时间:<fmt:formatDate value="${list.oOrderRefund.orderTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></span></td>
                        </tr>
                        </tbody>
                        <tbody>
                        <tr>
                            <td>
                                <div class="product_name">
                                    <div class="t_img"><img src="${list.orderProductsEntityList[0].image}" /></div>
                                    <div class="t_info">
                                        <a href="#">${list.orderProductsEntityList[0].title}</a>
                                        <div>
                                            <span class="c-999999">商品编码：${list.orderProductsEntityList[0].code}</span>
                                        </div>
                                    </div>
                                </div>
                            </td>
                            <td>${list.orderProductsEntityList[0].price}</td>
                            <td>${list.orderProductsEntityList[0].quantity}</td>

                            <td rowspan="${list.orderProductsEntityList.size()}"><span class="c-3b9eeb">${list.oOrderRefund.buyerUserName}</span></td>
                            <td rowspan="${list.orderProductsEntityList.size()}" class="tac">
                                <div class="fwb">${list.oOrderRefund.paymentMoneyAmount}</div>
                            </td>
                            <td rowspan="${list.orderProductsEntityList.size()}" class="tac">
                                <c:if test="${list.oOrderRefund.orderStatus==0}">
                                    <div><a class="c-FF0000" href="#">等待卖家审核</a></div>
                                    <div><a class="c-3b9eeb" href="${ctx}/order/reviewRefundOrder?oid=${list.oOrderRefund.orderRefundId}">审核</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="c-3b9eeb" href="${ctx}/order/getRefundOrderInfor?oid=${list.oOrderRefund.orderRefundId}">详情</a></div>
                                </c:if>
                                <c:if test="${list.oOrderRefund.orderStatus==1}">
                                    <div><a class="c-FF0000" href="#">等待买家发货</a></div>
                                    <div><a class="c-3b9eeb" href="${ctx}/order/getRefundOrderInfor?oid=${list.oOrderRefund.orderRefundId}">详情</a></div>
                                </c:if>
                                <c:if test="${list.oOrderRefund.orderStatus==2}">
                                    <div><a class="c-FF0000" href="#">买家已发货</a></div>
                                    <div><a class="c-3b9eeb" href="${ctx}/order/confirmGetGoods?oid=${list.oOrderRefund.orderRefundId}">确认收货</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="c-3b9eeb" href="${ctx}/order/getRefundOrderInfor?oid=${list.oOrderRefund.orderRefundId}">详情</a></div>
                                </c:if>
                                <c:if test="${list.oOrderRefund.orderStatus==3}">
                                    <div><a class="c-FF0000" href="#">退款成功</a></div>
                                    <div><a class="c-3b9eeb" href="${ctx}/order/getRefundOrderInfor?oid=${list.oOrderRefund.orderRefundId}">详情</a></div>
                                </c:if>
                                <c:if test="${list.oOrderRefund.orderStatus==-1}">
                                    <div><a class="c-FF0000" href="#">退款失败</a></div>
                                    <div><a class="c-3b9eeb" href="${ctx}/order/getRefundOrderInfor?oid=${list.oOrderRefund.orderRefundId}">详情</a></div>
                                </c:if>
                            </td>
                        </tr>

                        <c:forEach items="${list.orderProductsEntityList}" var="item" begin="1">
                        <tr>
                            <td>
                                <div class="product_name">
                                    <div class="t_img"><img src="${item.image}" /></div>
                                    <div class="t_info">
                                        <a href="#">${item.title}</a>
                                        <div>
                                            <span class="c-999999">商品编码：${item.code}</span>
                                        </div>
                                    </div>
                                </div>
                            </td>
                            <td>${item.price}</td>
                            <td>${item.quantity}</td>
                        <tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                </c:forEach>
            </div>

            <div class="pages" style="padding:20px; text-align:right;">
                <ul>
                <paging:paging pageIndex="${pageIndex}" totalPage="${totalPage}" htmlTag="li" href="${ctx}/order/getAllRefundOrders"></paging:paging>
                </ul>
                    <%--<ul>--%>
                    <%--<li><a>上一页</a></li>--%>
                    <%--<li><a>1</a></li>--%>
                    <%--<li class="active"><a>2</a></li>--%>
                    <%--<li><a>3</a></li>--%>
                    <%--<li><a>4</a></li>--%>
                    <%--<li>...</li>--%>
                    <%--<li><a>100</a></li>--%>
                    <%--<li><a>下一页</a></li>--%>
                <%--</ul>--%>
                <%--<form>--%>
                    <%--共100页到第--%>
                    <%--<input type="text" value="1" class="inputwh">--%>
                    <%--页--%>
                <%--</form>--%>
            </div>
        </div>
        <!--end mc-->
    </div>
</div>
<!--商品列表 end -->
</body>
</html>
